home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19990725-20000114
/
000100_news@columbia.edu _Wed Sep 15 12:52:15 1999.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Return-Path: <news@columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id MAA28220
for <kermit.misc@watsun.cc.columbia.edu>; Wed, 15 Sep 1999 12:52:14 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id MAA25325
for kermit.misc@watsun.cc.columbia.edu; Wed, 15 Sep 1999 12:25:49 -0400 (EDT)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: fred smith <fredex@fcshome.stoneham.ma.us>
Subject: Re: How do I pass Kermit parameters?
Organization: None!
Message-ID: <FI3K15.E6F@fcshome.stoneham.ma.us>
Date: Wed, 15 Sep 1999 10:34:17 GMT
To: kermit.misc@columbia.edu
Frank da Cruz <fdc@watsun.cc.columbia.edu> wrote:
: In article <7rm5g7$v0a$1@nnrp1.deja.com>, <dixonan@my-deja.com> wrote:
: : I want to pass Kermit parameters from my Visual Basic program.
: : <snip>
: The methods for passing command-line arguments to a script are a bit
: awkward, since K95 (and C-Kermit 6.0, upon which it is based) have
: their own command-line arguments. All of this will be simplified in the
: next releases (C-Kermit 7.0 and K95 1.1.18), but for the time being, you
: have two choices. The first one is:
: <path>k95 <name-of-script-file> = <arg1> <arg2> ...
<snip>
What I've done, with both C-Kermit and MS-Kermit, when I had a whole
bunch of things I wanted to pass to a kermit script was to put a (on
Unix) shellscript or (or DOS) batchfile wrapper around the invocation of
Kermit. This shellscript/batch file takes its own parameter list and/or
things from its environment, and writes a kermit script which assigns
those values to kermit variables, then as the last thing it does invokes
kermit with appropriate arguments to cause kermit to 'take' that kermit
script. (This tends to be a 3-stage operation: 1) run the batch file,
which builds the kermit script, 2) invoke kermit which runs the
newly-constructed script, and 3) that on-the-fly script then tends to
invoke the "real" script, the one that actually does the work, once it
has completed processing the various commands created on the fly by the
batch file). This shellscript/batch file, then, is invoked from within
some other program that wants to do some kind of complex thing with
Kermit.
Fred
--
---- Fred Smith -- fredex@fcshome.stoneham.ma.us ----------------------------
But God demonstrates his own love for us in this:
While we were still sinners,
Christ died for us.
------------------------------- Romans 5:8 (niv) ------------------------------